#ifndef LOADER_H
#define LOADER_H

#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <cctype>

using namespace std;

#define BLOCK_SIZE 128

class Loader {
	ifstream in;
public:
	Loader(char *filename);
	~Loader();
	int readBlock(short mode, int block_size = BLOCK_SIZE);
	void getEndOfTheWord(string *str,bool last_iteration, int *gcount);
	void getEndOfThePhrase(string *str, bool last_iteration, int *gcount);
	void removeSpaces(string *str);
	int tellLength();
};

#endif
